package com.xunyin.modules.maincouponsend.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xunyin.domain.BaseDomain;
import lombok.Data;

import java.util.Date;

/**
 * @author admin
 * @date 2022-10-8
 */
@Data
@TableName("t_main_coupon_user")
public class TMainCouponUser extends BaseDomain {

    @TableId
    private Integer id;

    private Short source;

    private Integer sourceId;

    private Integer mainId;

    private String userPhone;

    private Integer appUserId;

    private Short appType;

    private Date takeTime;

    private Date startTime;

    private Date endTime;

    private Short deductionLevel;

    private Integer deductionType;

    private Integer useProductType;

    private Double deductionNum;

    private Double reductionNum;

    private Date useTime;

    private Integer useStatus;

    private String remark;

    private Date createTime;

    private Date updateTime;

    private Date deleteTime;

    private Integer createUserId;

    private Integer updateUserId;

    private Integer status;

    public void copy(TMainCouponSend source) {
        BeanUtil.copyProperties(source, this, CopyOptions.create().setIgnoreNullValue(true));
    }

}
